package com.mfin.persistence;

import java.io.Serializable;
import java.util.List;

import javax.persistence.PersistenceException;

public interface IPersistenceGovernor {

	public void init() throws PersistenceException;

	public void close() throws PersistenceException;

	public void close(boolean commit) throws PersistenceException;

	public Serializable insert(Object obj) throws PersistenceException;

	public void persist(Object obj) throws PersistenceException;

	public void update(Object obj) throws PersistenceException;

	public void delete(Object obj) throws PersistenceException;

	public Object get(Class<?> clazz, Serializable objKey) throws PersistenceException;

	public List createCriteria(Class<?> clazz) throws PersistenceException;
}
